﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintReceiptOrder.aspx.cs" Inherits="ReceiptMenoyOrder" Async="true"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body style="text-align: center">
    <form id="form1" runat="server">
    <div>
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td align="center" colspan="7" style="height: 10px; text-align: center">
                <asp:Label ID="lblInfo" runat="server" ForeColor="red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 24px; text-align: right">
                    <strong>收款单</strong></td>
                <td style="width: 100px; height: 24px">
                </td>
                <td style="width: 100px; height: 24px">
                </td>
                <td style="width: 100px; height: 24px; text-align: center">
                    <a style="cursor: hand"><strong><div id="print" onclick="window.print()">打印</div></strong></a></td>
                <td style="width: 100px; height: 24px">
                </td>
                <td style="width: 100px; height: 24px">
                </td>
                <td style="width: 100px; height: 24px">
                </td>
            </tr>
            <tr>
                <td colspan="7" style="height: 24px; text-align: right">
                <table width="100%" border="0" cellpadding="2" cellspacing="0" class="p12white">
			<tr>
				<td><hr size="1" noshade>
				</td>
			</tr>
		</table>
                </td>
            </tr>
            <tr>
                <td style="width: 100px; background-color: #f7f7f7;">
                </td>
                <td colspan="5" style="background-color: #f7f7f7">
                    <table cellpadding="0" cellspacing="0" style="background-color: #f7f7f7">
                        <tr>
                            <td style="width: 100px; height: 16px;">
                                收款单号:</td>
                            <td colspan="2" style="height: 16px">
                                <asp:Label ID="lblReceiptID" runat="server" Text=""></asp:Label></td>
                            <td style="width: 100px; height: 16px;">
                                订单号:</td>
                            <td style="width: 100px; height: 16px;">
                                <asp:Label ID="lblOrderInfoID" runat="server" Text="" Width="106px"></asp:Label></td>
                            <td style="width: 100px; height: 16px;">
                            </td>
                            <td style="width: 100px; height: 16px;">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px; height: 16px">
                                操作人:</td>
                            <td style="width: 100px; height: 16px">
                                <asp:Label ID="lblSalesmanName" runat="server" Text=""></asp:Label></td>
                            <td style="width: 100px; height: 16px">
                            </td>
                            <td style="width: 100px; height: 16px">
                                收款时间:</td>
                            <td style="width: 100px; height: 16px">
                                <asp:Label ID="lblCreationTime" runat="server" Text="" Width="124px"></asp:Label></td>
                            <td style="width: 100px; height: 16px">
                            </td>
                            <td style="width: 100px; height: 16px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px; height: 12px;">
                                付款方式:</td>
                            <td style="width: 100px; height: 12px;">
                                <asp:Label ID="lblBillMethod" runat="server"></asp:Label></td>
                            <td style="width: 100px; height: 12px;">
                            </td>
                            <td style="width: 100px; height: 12px;">
                                付款人:</td>
                            <td style="width: 100px; height: 12px;">
                                <asp:Label ID="lblBillName" runat="server" Text=""></asp:Label></td>
                            <td style="width: 100px; height: 12px;">
                            </td>
                            <td style="width: 100px; height: 12px;">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px; height: 12px;">
                                付款人联系电话:</td>
                            <td style="width: 100px; height: 12px;">
                                <asp:Label ID="lblPhone" runat="server" Text=""></asp:Label></td>
                            <td style="width: 100px; height: 12px;" colspan="2">
                                </td>
                            <td style="width: 100px; height: 12px;">
                                </td>
                            <td style="width: 100px; height: 12px;">
                            </td>
                            <td style="width: 100px; height: 12px;">
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 100px; background-color: #f7f7f7;">
                </td>
            </tr>
            <tr>
                <td colspan="7" style="height: 12px">
                <table width="100%" border="0" cellpadding="2" cellspacing="0" class="p12white">
			<tr>
				<td style="height: 30px"><hr size="1" noshade>
				</td>
			</tr>
		</table>
                </td>
            </tr>
            <tr>
                <td colspan="7" style="text-align: center">
                    &nbsp;<asp:GridView ID="gdvOrderItem" runat="server" AutoGenerateColumns="False" Width="645px" SkinID="GridView2" style="width: 100%">
                                <Columns>
                                    <asp:BoundField DataField="ProductID" HeaderText="商品编号" />
                                    <asp:BoundField DataField="Name" HeaderText="商品名" />
                                    <asp:BoundField DataField="UnitPrice" HeaderText="单价" />
                                    <asp:TemplateField HeaderText="数量及单位">
                                        <ItemTemplate>
                                            <asp:Label ID="lblQuantity" runat="server" Text='<%# string.Format("{0}",Eval("Quantity"))%>'></asp:Label>
                                            <asp:Label ID="lblUnit" runat="server" Text='<%# string.Format("{0}",Eval("Unit")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="单项总价">
                                <ItemTemplate>
                                    ￥<asp:Label ID="lblSumPrice" runat="server" Style="position: static" Text='<%#string.Format("{0}",(Convert.ToInt32(Eval("Quantity"))*Convert.ToInt32(Eval("UnitPrice"))).ToString())%>'></asp:Label>&nbsp;
                                </ItemTemplate>
                            </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="7" style="height: 18px; text-align: center;">
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                    数量总计<asp:Label ID="lblQuantity" runat="server" Text=""></asp:Label>件 商品总金额<asp:Label
                        ID="lblTotalPrice" runat="server" Text=""></asp:Label>元</td>
            </tr>
            <tr>
                <td colspan="7" style="height: 43px">
                <table width="100%" border="0" cellpadding="2" cellspacing="0" class="p12white">
			<tr>
				<td><hr size="1" noshade>
				</td>
			</tr>
		</table>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
